package cs7;

public class Employee {

		public String name;
		public int id;
		public double wages;
		
		public Employee(){
			
		}
		
		public Employee(String name,int id,double wages){
			this.name=name;
			this.id=id;
			this.wages=wages;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}

		public double getWages() {
			return wages;
		}

		public void setWages(double wages) {
			this.wages = wages;
		}

		@Override
		public String toString() {
			return "Employee [name=" + name + ", id=" + id + ", wages=" + wages + "]";
		}
		
		@Override
		public boolean equals(Object obj){
			Employee e = null;
			if(obj instanceof Employee){
				e=(Employee) obj;
			}
			if(this.id==e.getId()){
				return true;
			}
			return false;
		}
		@Override
		public int hashCode(){
			int hashCode = this.id;
			return hashCode;
		}
}
		
			
			